package com.lyl.controller;

import com.lyl.feignclients.ProductClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CategoryController {
    @Autowired
    private ProductClient productClient;
    @GetMapping("/category")
    public String category() {
        return "category ok. "+productClient.product();
    }
}
